<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>document</title>
	<style>div{width: 230px;height: 219px;background-color: #EA7665;
		position: absolute;}</style>
	<script>window.onload=function (argument) {
		window.onscroll=document.onmousemove=function (argument) {
			var omain=document.getElementById('main');
			var scrolltop=document.documentElement.scrollTop||document.body.scrollTop;
			omain.style.left=event.clientX+'px';
			omain.style.top=scrolltop+event.clientY+'px';
		}
	}</script>
</head>
<body style="height: 1500px;">
<div id="main">加入运动框架'跟随.html.html'就能实现跟随效果。</div>
</body>
</html>